package models;

import java.awt.Image;
import java.io.File;
import java.util.*;

import javax.persistence.*;

import org.hibernate.annotations.Entity;

import play.db.jpa.*;

@Entity
public class Organization extends Model {

	@Required
	public String name;
	// public int id; <-- we dont intialize a variable for the id cuz it is
	// automatically created by the db

	@Email
	@Required
	public String email;

	@Required
	public String address;

	@Required
	@Lob
	public String description;

	public String category;
	public Image picture;
	public Date creationDate;
	public File document;

	public Organization(String name, String email, String address,
			String description, String category, Image picture,
			Date creationDate, File document) {
		
		this.name = name;
		this.email = email;
		this.address = address;
		this.description = description;
		this.category = category;
		this.creationDate = creationDate;
		this.picture = picture;
		this.document = document;

	}

}
